using UnityEngine;

[CreateAssetMenu(fileName = nameof(IntVariable), menuName = "Variable/IntVariable")]
public class IntVariable : ScriptableObject
{
    public string fileName;
    public int maxValue;
    public int currentValue;

    [TextArea]
    [SerializeField]
    private string description;

    public void SetValue(int value)
    {
        currentValue = value;
        EventCenter.GetInstance().EventTrigger<int>(fileName+"ValueChange",value);
    }
}